/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.kj.entity;

import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

import java.math.BigDecimal;

/**
 * kj_project_contributeEntity
 * @author hzy
 * @version 2021-07-13
 */
@Table(name="kj_project_contribute", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="project_id", attrName="projectId", label="project_id"),
		@Column(name="project_name", attrName="projectName", label="project_name", isQuery=false),
		@Column(name="member_id", attrName="memberId", label="member_id"),
		@Column(name="member_name", attrName="memberName", label="member_name", isQuery=false),
		@Column(name="team_id", attrName="teamId", label="team_id"),
		@Column(name="team_name", attrName="teamName", label="team_name", isQuery=false),
		@Column(name="contribute", attrName="contribute", label="contribute"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class KjProjectContribute extends DataEntity<KjProjectContribute> {

	private static final long serialVersionUID = 1L;
	private String projectId;		// project_id
	private String projectName;		// project_name
	private String memberId;		// member_id
	private String memberName;		// member_name
	private String teamId;		// team_id
	private String teamName;		// team_name
	private BigDecimal contribute;		// contribute
	private String img;		// contribute
	private String banner;		// contribute

	public KjProjectContribute() {
		this(null);
	}

	public KjProjectContribute(String id){
		super(id);
	}

	@NotBlank(message="project_id不能为空")
	@Length(min=0, max=64, message="project_id长度不能超过 64 个字符")
	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	@Length(min=0, max=255, message="project_name长度不能超过 255 个字符")
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	@NotBlank(message="member_id不能为空")
	@Length(min=0, max=64, message="member_id长度不能超过 64 个字符")
	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	@Length(min=0, max=255, message="member_name长度不能超过 255 个字符")
	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	@Length(min=0, max=64, message="team_id长度不能超过 64 个字符")
	public String getTeamId() {
		return teamId;
	}

	public void setTeamId(String teamId) {
		this.teamId = teamId;
	}

	@Length(min=0, max=255, message="team_name长度不能超过 255 个字符")
	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	@NotNull(message="contribute不能为空")
	public BigDecimal getContribute() {
		return contribute;
	}

	public void setContribute(BigDecimal contribute) {
		this.contribute = contribute;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getBanner() {
		return banner;
	}

	public void setBanner(String banner) {
		this.banner = banner;
	}
}
